import { useEffect } from "react";

//自定义hook，用来修改页面标题
const useTitle = (title:string)=>{
  useEffect(()=>{
    document.title = title;
  })
}


export default useTitle;